package com.huikaka.service;

import com.huikaka.entity.Shop;
import com.huikaka.mapper.ShopMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ShopService {
    @Autowired
    private ShopMapper shopMapper;

    public List<Shop> findAllShopInfoButPhoto(){
        try {
            List<Shop> list = shopMapper.findAllShopInfoButPhoto();
            if (list == null || list.size() == 0){
                return new ArrayList<>();
            }
            return list;
        }catch (Exception e){
            e.printStackTrace();
        }
        return new ArrayList<>();
    }
}
